package com.yongbao.model.request.manual.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel("主订单新增请求模型")
public class MainOrderAddRequest implements Serializable {
    @ApiModelProperty("发起人id")
    private Long userId;
    @ApiModelProperty("区id")
    private Long areaId;
    @ApiModelProperty("区名称")
    private String areaName;
    @ApiModelProperty("区名称前缀")
    private String areaNamePrefix;
    @ApiModelProperty("街道id")
    private Long streetId;
    @ApiModelProperty("街道名称")
    private String streetName;
    @ApiModelProperty("具体地址")
    private String address;
    @ApiModelProperty("经度(下单地址的经度)")
    private String lng;
    @ApiModelProperty("纬度(下单地址的纬度)")
    private String lat;
    @ApiModelProperty("预定早餐  0否 1是")
    private Integer bookBreakfast;
    @ApiModelProperty("预定中午饭  0否 1是")
    private Integer bookLunch;
    @ApiModelProperty("预定下午饭  0否 1是")
    private Integer bookDinner;
    @ApiModelProperty("订餐类型 1周餐 2月餐")
    private Integer orderType;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("送餐开始日期")
    private Date startDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty("送餐结束日期")
    private Date endDate;
    @ApiModelProperty("是否愿意成为团长 0否 1是")
    private Integer headGroup;
    @ApiModelProperty("手机号")
    private String mobile;
    @ApiModelProperty("预定份数")
    private List<DishOrderBookAddRequest> bookList;
}
